package com.ruoyi.work.service;

import com.ruoyi.work.domain.WorkDeclarer;

import java.util.List;

/**
 * @Author: MMDZ
 * @Desc:
 */
public interface IWorkDeclarerService {
    /**
     * 查询人员项目配置列表 - 条件 分页
     *
     * @param declarer
     * @return
     */
    List<WorkDeclarer> selectWorkDeclarerList(WorkDeclarer declarer);

    /**
     * 查询没有加入的人员项目配置的人员
     *
     * @param declarer
     * @return
     */
    List<WorkDeclarer> selectWorkDeclarerUnselected(WorkDeclarer declarer);

    /**
     * 根据id查询人员项目配置
     *
     * @param declarerId
     * @return
     */
    WorkDeclarer selectDeclarerById(Long declarerId);

    /**
     * 查询人员是否在项目配置中
     *
     * @param userId
     * @return
     */
    Boolean selectExistDeclarer(Long userId);

    /**
     * 新增
     *
     * @param userIds
     * @return
     */
    int insertWorkDeclarerByIds(Long[] userIds);

    /**
     * 修改
     *
     * @param workDeclarer
     * @return
     */
    int updateDeclarer(WorkDeclarer workDeclarer);

    /**
     * 删除
     *
     * @param declarerId
     * @return
     */
    int deleteWorkDeclarerById(Long declarerId);
}
